<?php
/**
 * Model dla klasy MfLog
 *
 * @author ModGen
 */

class MfLogger extends DataObject{


	/**
	 * nazwa tabeli
	 */
	static $tableName = 'mf_log';

	/**
	 * nazwa klucza tabeli
	 */
	static $classTablePK = 'id_mf_log';

	/**
	 * nazwa klasy
	 */
	static $className = __CLASS__;

	/**
	 * tablica mapująca pola klasy
	 */
	static $fields = array(
		'id_mf_log' => 'id',
		'server' => 'server',
		'type' => 'type',
		'message' => 'message',
		'time' => 'time',
		'status' => 'status',
		'date_insert' => 'dateInsert',
		'date_update' => 'dateUpdate'
	);


	protected $id;
	private $server;
	private $type;
	private $message;
	private $time;
	private $status;
	private $dateInsert;
	private $dateUpdate;



	// -- Konstruktor --


	function __construct( $id = -1 , $server = null, $type = null, $message = null, $time = null, $status = null, $dateInsert = null, $dateUpdate = null){
		$this->id = $id;
		$this->server = $server;
		$this->type = $type;
		$this->message = $message;
		$this->time = $time;
		$this->status = $status;
		$this->dateInsert = $dateInsert;
		$this->dateUpdate = $dateUpdate;
	}



	// -- Get-y i Set-y --

	public function getId(){
		return $this->id;
	}

	public function setId($id){
		$this->id = $id;
	}

	
	public function getServer(){
		return $this->server;
	}

	public function setServer($server){
		$this->server = $server;
	}

	
	public function getType(){
		return $this->type;
	}

	public function setType($type){
		$this->type = $type;
	}

	
	public function getMessage(){
		return $this->message;
	}

	public function setMessage($message){
		$this->message = $message;
	}

	
	public function getTime(){
		return $this->time;
	}

	public function setTime($time){
		$this->time = $time;
	}

	
	public function getStatus(){
		return $this->status;
	}

	public function setStatus($status){
		$this->status = $status;
	}

	
	public function getDateInsert(){
		return $this->dateInsert;
	}

	public function setDateInsert($dateInsert){
		$this->dateInsert = $dateInsert;
	}

	
	public function getDateUpdate(){
		return $this->dateUpdate;
	}

	public function setDateUpdate($dateUpdate){
		$this->dateUpdate = $dateUpdate;
	}

	




	/**
	* Pobiera nazwę tabeli reprezentującej obiekt w SQL
	* @return string
	*/
	public  function GetTableName(){
	return self::$tableName;
	}

	/**
	* Pobiera nazwę klucza głównego tabeli
	* @return string
	*/
	public function GetClassTablePK() {
		return self::$classTablePK;
	}

	/**
	* Pobiera tablice mapującą pola klasy na pola tabeli
	* @return array
	*/
	public  function GetFields(){
		return self::$fields;
	}

	/**
	* Pobiera nazwę klasy
	* @return string
	*/
	public  function GetClassName(){
		return self::$className;
	}



}

?>